package com.vhall.component.dao.room;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vhall.component.entity.data.vo.DpLiveViewDataResponseVO;
import com.vhall.component.entity.data.vo.UserParamVO;
import com.vhall.component.entity.room.entity.AnchorRoomRelationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xing.wang
 * @description 针对表【anchor_room_relation(直播主播关联表)】的数据库操作Mapper
 * @createDate 2023-08-09 14:15:00
 * @Entity generator.domain.AnchorRoomRelationEntity
 */
@Mapper
@Repository
public interface AnchorRoomRelationMapper extends BaseMapper<AnchorRoomRelationEntity> {


    List<AnchorRoomRelationEntity> selectInfoList(@Param("ilidList") List<Integer> ilidList);

    /**
     * 使用草稿 id 获取草稿关联的主播信息
     *
     * @param roomDraftRecordIds
     * @return
     */
    List<AnchorRoomRelationEntity> selectInfoDraftList(@Param("roomDraftRecordIds") List<Integer> roomDraftRecordIds);

    List<DpLiveViewDataResponseVO> selectPageAvgWatchDuration(UserParamVO reqVO);

    /**
     * 统计主播关联的房间数量
     * @param reqVO
     * @return
     */
    List<DpLiveViewDataResponseVO> selectAnchorListRoomCount(UserParamVO reqVO);

    /**
     * 统计主播关联的直播观看数量
     * @param reqVO
     * @return
     */
    List<DpLiveViewDataResponseVO> selectAnchorListViewCount(UserParamVO reqVO);
}




